Police apologize, High Court dismisses case against them for taking photos with the accused